cmake_minimum_required(VERSION 3.10)
project(grpcDemo C CXX)

if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE "Debug")
endif()

find_package(Protobuf  REQUIRED)
find_package(gRPC  REQUIRED )

set(SRCS 
    main.cpp  
    hello.grpc.pb.cc 
    hello.pb.cc
)

add_executable(grpcDemo ${SRCS})
target_link_libraries(grpcDemo protobuf::libprotobuf gRPC::grpc++ gRPC::grpc++_reflection)




